package org.xielei.designpatterns.behavioral.observer;

import java.util.Observable;

/**
 * ConcreteTarget
 *
 * @author xielei
 * @date 2020/8/6
 */
public class ConcreteTargetOne extends Observable {

    public ConcreteTargetOne() {
        addObserver(new ObserverOne());
        addObserver(new ObserverTwo());
    }

    void notifyOneAndTwo() {
        super.setChanged();
        super.notifyObservers();
    }
}
